namespace VAdvantage.Model
{

/** Generated Model - DO NOT CHANGE */
using System;
using System.Text;
using VAdvantage.DataBase;
using VAdvantage.Common;
using VAdvantage.Classes;
using VAdvantage.Process;
using VAdvantage.Model;
using VAdvantage.Utility;
using System.Data;
/** Generated Model for VSS_CircuitLocation
 *  @author Jagmohan Bhatt (generated) 
 *  @version Vienna Framework 1.1.1 - $Id$ */
public class X_VSS_CircuitLocation : PO
{
public X_VSS_CircuitLocation (Context ctx, int VSS_CircuitLocation_ID, String trxName) : base (ctx, VSS_CircuitLocation_ID, trxName)
{
/** if (VSS_CircuitLocation_ID == 0)
{
SetVSS_CircuitLocation_ID (0);
}
 */
}
public X_VSS_CircuitLocation (Ctx ctx, int VSS_CircuitLocation_ID, String trxName) : base (ctx, VSS_CircuitLocation_ID, trxName)
{
/** if (VSS_CircuitLocation_ID == 0)
{
SetVSS_CircuitLocation_ID (0);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_CircuitLocation (Context ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_CircuitLocation (Ctx ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_CircuitLocation (Ctx ctx, IDataReader dr, String trxName) : base(ctx, dr, trxName)
{
}
/** Static Constructor 
 Set Table ID By Table Name
 added by ->Harwinder */
static X_VSS_CircuitLocation()
{
 Table_ID = Get_Table_ID(Table_Name);
 model = new KeyNamePair(Table_ID,Table_Name);
}
/** Serial Version No */
static long serialVersionUID = 27602617106699L;
/** Last Updated Timestamp 11/5/2011 4:46:29 PM */
public static long updatedMS = 1320491789910L;
/** AD_Table_ID=1000097 */
public static int Table_ID;
 // =1000097;

/** TableName=VSS_CircuitLocation */
public static String Table_Name="VSS_CircuitLocation";

protected static KeyNamePair model;
protected Decimal accessLevel = new Decimal(3);
/** AccessLevel
@return 3 - Client - Org 
*/
protected override int Get_AccessLevel()
{
return Convert.ToInt32(accessLevel.ToString());
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Context ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Ctx ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public override String ToString()
{
StringBuilder sb = new StringBuilder ("X_VSS_CircuitLocation[").Append(Get_ID()).Append("]");
return sb.ToString();
}
/** Set Cabinet#.
@param Cabinet Cabinet# */
public void SetCabinet (String Cabinet)
{
if (Cabinet != null && Cabinet.Length > 50)
{
log.Warning("Length > 50 - truncated");
Cabinet = Cabinet.Substring(0,50);
}
Set_Value ("Cabinet", Cabinet);
}
/** Get Cabinet#.
@return Cabinet# */
public String GetCabinet() 
{
return (String)Get_Value("Cabinet");
}
/** Set Cabinet-PRIM.
@param CabinetPRIM Cabinet-PRIM */
public void SetCabinetPRIM (String CabinetPRIM)
{
if (CabinetPRIM != null && CabinetPRIM.Length > 50)
{
log.Warning("Length > 50 - truncated");
CabinetPRIM = CabinetPRIM.Substring(0,50);
}
Set_Value ("CabinetPRIM", CabinetPRIM);
}
/** Get Cabinet-PRIM.
@return Cabinet-PRIM */
public String GetCabinetPRIM() 
{
return (String)Get_Value("CabinetPRIM");
}
/** Set DISTANCE.
@param DISTANCE DISTANCE */
public void SetDISTANCE (String DISTANCE)
{
if (DISTANCE != null && DISTANCE.Length > 50)
{
log.Warning("Length > 50 - truncated");
DISTANCE = DISTANCE.Substring(0,50);
}
Set_Value ("DISTANCE", DISTANCE);
}
/** Get DISTANCE.
@return DISTANCE */
public String GetDISTANCE() 
{
return (String)Get_Value("DISTANCE");
}
/** Set DP#.
@param DP DP# */
public void SetDP (String DP)
{
if (DP != null && DP.Length > 50)
{
log.Warning("Length > 50 - truncated");
DP = DP.Substring(0,50);
}
Set_Value ("DP", DP);
}
/** Get DP#.
@return DP# */
public String GetDP() 
{
return (String)Get_Value("DP");
}
/** Set DP-PRIM.
@param DP_PRIM DP-PRIM */
public void SetDP_PRIM (String DP_PRIM)
{
if (DP_PRIM != null && DP_PRIM.Length > 50)
{
log.Warning("Length > 50 - truncated");
DP_PRIM = DP_PRIM.Substring(0,50);
}
Set_Value ("DP_PRIM", DP_PRIM);
}
/** Get DP-PRIM.
@return DP-PRIM */
public String GetDP_PRIM() 
{
return (String)Get_Value("DP_PRIM");
}
/** Set Description.
@param Description Optional short description of the record */
public void SetDescription (String Description)
{
if (Description != null && Description.Length > 50)
{
log.Warning("Length > 50 - truncated");
Description = Description.Substring(0,50);
}
Set_Value ("Description", Description);
}
/** Get Description.
@return Optional short description of the record */
public String GetDescription() 
{
return (String)Get_Value("Description");
}
/** Set Exch/BTS.
@param ExchBTS Exch/BTS */
public void SetExchBTS (String ExchBTS)
{
if (ExchBTS != null && ExchBTS.Length > 50)
{
log.Warning("Length > 50 - truncated");
ExchBTS = ExchBTS.Substring(0,50);
}
Set_Value ("ExchBTS", ExchBTS);
}
/** Get Exch/BTS.
@return Exch/BTS */
public String GetExchBTS() 
{
return (String)Get_Value("ExchBTS");
}
/** Set GPS.
@param GPS GPS */
public void SetGPS (String GPS)
{
if (GPS != null && GPS.Length > 50)
{
log.Warning("Length > 50 - truncated");
GPS = GPS.Substring(0,50);
}
Set_Value ("GPS", GPS);
}
/** Get GPS.
@return GPS */
public String GetGPS() 
{
return (String)Get_Value("GPS");
}
/** Set IP Add.
@param IPADD IP Add */
public void SetIPADD (String IPADD)
{
if (IPADD != null && IPADD.Length > 50)
{
log.Warning("Length > 50 - truncated");
IPADD = IPADD.Substring(0,50);
}
Set_Value ("IPADD", IPADD);
}
/** Get IP Add.
@return IP Add */
public String GetIPADD() 
{
return (String)Get_Value("IPADD");
}
/** Set PARI#.
@param PARI PARI# */
public void SetPARI (String PARI)
{
if (PARI != null && PARI.Length > 50)
{
log.Warning("Length > 50 - truncated");
PARI = PARI.Substring(0,50);
}
Set_Value ("PARI", PARI);
}
/** Get PARI#.
@return PARI# */
public String GetPARI() 
{
return (String)Get_Value("PARI");
}
/** Set Polarization.
@param Polarization Polarization */
public void SetPolarization (String Polarization)
{
if (Polarization != null && Polarization.Length > 50)
{
log.Warning("Length > 50 - truncated");
Polarization = Polarization.Substring(0,50);
}
Set_Value ("Polarization", Polarization);
}
/** Get Polarization.
@return Polarization */
public String GetPolarization() 
{
return (String)Get_Value("Polarization");
}
/** Set Port.
@param Port Port */
public void SetPort (String Port)
{
if (Port != null && Port.Length > 50)
{
log.Warning("Length > 50 - truncated");
Port = Port.Substring(0,50);
}
Set_Value ("Port", Port);
}
/** Get Port.
@return Port */
public String GetPort() 
{
return (String)Get_Value("Port");
}
/** Set Sector.
@param Sector Sector */
public void SetSector (String Sector)
{
if (Sector != null && Sector.Length > 50)
{
log.Warning("Length > 50 - truncated");
Sector = Sector.Substring(0,50);
}
Set_Value ("Sector", Sector);
}
/** Get Sector.
@return Sector */
public String GetSector() 
{
return (String)Get_Value("Sector");
}
/** Set Site.
@param Site Site */
public void SetSite (String Site)
{
if (Site != null && Site.Length > 50)
{
log.Warning("Length > 50 - truncated");
Site = Site.Substring(0,50);
}
Set_Value ("Site", Site);
}
/** Get Site.
@return Site */
public String GetSite() 
{
return (String)Get_Value("Site");
}
/** Set Slot.
@param Slot Slot */
public void SetSlot (String Slot)
{
if (Slot != null && Slot.Length > 50)
{
log.Warning("Length > 50 - truncated");
Slot = Slot.Substring(0,50);
}
Set_Value ("Slot", Slot);
}
/** Get Slot.
@return Slot */
public String GetSlot() 
{
return (String)Get_Value("Slot");
}
/** Set VLAN.
@param VLAN VLAN */
public void SetVLAN (String VLAN)
{
if (VLAN != null && VLAN.Length > 50)
{
log.Warning("Length > 50 - truncated");
VLAN = VLAN.Substring(0,50);
}
Set_Value ("VLAN", VLAN);
}
/** Get VLAN.
@return VLAN */
public String GetVLAN() 
{
return (String)Get_Value("VLAN");
}
/** Set VSS_CircuitLocation_ID.
@param VSS_CircuitLocation_ID VSS_CircuitLocation_ID */
public void SetVSS_CircuitLocation_ID (int VSS_CircuitLocation_ID)
{
if (VSS_CircuitLocation_ID < 1) throw new ArgumentException ("VSS_CircuitLocation_ID is mandatory.");
Set_ValueNoCheck ("VSS_CircuitLocation_ID", VSS_CircuitLocation_ID);
}
/** Get VSS_CircuitLocation_ID.
@return VSS_CircuitLocation_ID */
public int GetVSS_CircuitLocation_ID() 
{
Object ii = Get_Value("VSS_CircuitLocation_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set VSS_Circuit_ID.
@param VSS_Circuit_ID VSS_Circuit_ID */
public void SetVSS_Circuit_ID (int VSS_Circuit_ID)
{
if (VSS_Circuit_ID <= 0) Set_Value ("VSS_Circuit_ID", null);
else
Set_Value ("VSS_Circuit_ID", VSS_Circuit_ID);
}
/** Get VSS_Circuit_ID.
@return VSS_Circuit_ID */
public int GetVSS_Circuit_ID() 
{
Object ii = Get_Value("VSS_Circuit_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
}

}
